package com.blog.common.thread;

public class BaseThread {
    // 创建线程存储
    private static ThreadLocal<String> threadLocal = new ThreadLocal<String>();

    public static void setId(String id ) {
        threadLocal.set(id);
    }
    public static String getId() {
        return threadLocal.get();
    }
}